package com.yugao.fintech.libra.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.yugao.fintech.libra.common.model.BasePO;
import com.yugao.fintech.libra.common.tenant.core.DataIsolation;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 角色和模块(服务)关联表

 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_role_module_rel")
@DataIsolation(filterTenant = true, tableName = "sys_role_module_rel")
public class SysRoleModuleRel extends BasePO {
    @TableId
    private Long id;

    /**
     * 角色ID
     */
    private Long roleId;

    /**
     * 模块(服务)id
     */
    private Long moduleId;

    public static LambdaQueryWrapper<SysRoleModuleRel> lqw() {
        return Wrappers.lambdaQuery();
    }
}
